package com.dubbo.consumer;

import com.dubbo.provider.api.OpenApiDispatcher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * \* User: MeiZhongHao
 * \* Date: 2019-04-24
 * \* Time: 14:59
 * \* Description:
 * \
 */
@Component
public class DubboRouteFilter {

    @Autowired
    private OpenApiDispatcherService openApiDispatcherService;

    public void doRoute(CallRequest request) {
        OpenApiDispatcher openApiDispatcher = openApiDispatcherService
                .getOpenApiDispatcher(null);
        String string = openApiDispatcher.doDispatch(request.getInterfaceName() + "&" + request.getVersion());
    }


}